<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <!-- crossorigin="anonymous"
    integrity="sha512-n/4gHW3atM3QqRcbCn6ewmpxcLAHGaDjpEBu4xZd47N0W2oQ+6q7oc3PXstrJYXcbNU1OHdQ1T7pAP+gi5Yu8g==" -->
    <script src="https://lib.baomitu.com/jquery/3.6.0/jquery.js"></script>
  </head>
  <body>
    <div id="box">123456</div>
    <a href="www.baidu.com">百<span>123</span>  度</a>
    <script>
      $(function () {
        /* const box = $("#box");
        console.log(box);
        console.dir(box);
        box.hide(); */
        /* const box = document.querySelector('#box')
        box.style.display = "none" */

        const a = $("a")[0];
        console.log('html--------------');
        console.log(a.innerHTML);
        console.log($("a").html());
        console.log('text--------------');
        console.log(a.innerText);
        console.log($("a").text());
        console.log('href--------------');
        console.log(a.href);
        console.log($("a").prop("href"));
      });
    </script>
  </body>
</html>
